import { createSSRApp } from "vue";
//引入pinia
import pinia from "./stores";
//引入页面跳转拦截器
import './permission';
import uviewPlus from 'uview-plus'


import validate from '@/utils/validate';	//引入全局方法

import App from "./App.vue";
export function createApp() {
	const app = createSSRApp(App);
	//挂载pinia插件
	app.use(pinia);
	//挂载uviewPlus插件
	app.use(uviewPlus)
	//挂载数据字典
	app.config.globalProperties.validate = validate
	return {
		app,
	};
}